;Hioki PW6001 Series Power Analyzers

;   Tested over Ethernet with Test Controller V2.04.  Earlier versions might not work.
;4/22/22 Rev A

;Per Hioki manual Communications Interface doc:
;	"To make a LAN connection, connect it to TCP/IP port No. 0023."
;   Even though port 23 is conventioinally Telnet PuTTY did not connect with "Connection type" Telnet.
;   PuTTY did connection with "Connection type" Raw.
;   *IDN? returns HIOKI,PW6001-13,210211304,V3.03


#idString HIOKI,PW6001-13,210211304,V3.03
#name Hioki PW6001
#handle PW6001
#port 23
#author gby
#notes Hioki PW6001 series instruments are up to 6-channel power analyzers.  This driver uses the Ethernet communications option with socket connection.  A modified form of this device file might work with serial, USB or GPIB communications and may work with other Hioki power analyzers.
; Alternate port types: comnobaud or com, com lets the user define baudrate on the "Load devices" page


; A list of possible column name with unit and formatter (SI, Time, Int, D0..D6) 
; Format: #value ColumnName Unit Format {Selector}
; Selector is only used when column layout varies with mode, this often require the use of #cmdMode

#value CH1 Amp SI
#value CH2 Volt SI
#value CH3 Amp SI
#value CH4 Volt SI

; How to poll for data, this is used for table and #values?
; a #askMode, #cmdMode and #prepareSample is used before this is string is used.
; Number of returned values must match number of columns defined with #value
; This is a single line command
;#askValues 

; Format of answer: f=float, u=remove trailing letters, x=skip, *=Zero upper case values if this value is 0
#askValuesReadFormat ffff

; Accept this delay when reading values (seconds)
#readingDelay 2

; Mode change have a longer delay on reading values (seconds)
#modeChangeDelay 10


; String to ask about actual meter mode, it is mostly used for DMM's
; This is a single line command
;#askMode 


; When one of these commands are used through the command interface a new configuration will be done before using #askMode
; Only one word for each #mayModifyMode
; Specify command without initial colon and in the shortest possible form
;#mayModifyMode 


; Prepare the meter to response to #askValues
;#prepareSample arm:sour imm;:arm:count 1;:trig:sour imm;:trig:count 1;:trig:samp:count 1;init

; Initial commands to meter when establishing connection, used to disable local control
;#initCmd  

; Final command to meter before breaking connection, used to restore local control
;#finalCmd 

; Used to turn output off for power supplies, generators and electronic loads
;#outputOff 

